/**
 * 
 */
package com.butterfly.vv.graphics.commands;

import com.butterfly.vv.graphics.filter.FilmFilter;
import com.butterfly.vv.graphics.filter.Image;

import android.graphics.Bitmap;

/**
 * @author haibin jiang
 *
 */
public class FilmFilterCommand implements ImageProcessingCommand {


	/* (non-Javadoc)
	 * @see com.butterfly.vv.graphics.commands.ImageProcessingCommand#process(android.graphics.Bitmap)
	 */
	
	private static final String ID = "com.rec.photoeditor.graphics.commands.FilmFilter";
	
	@Override
	public Bitmap process(Bitmap bitmap) {
		// TODO Auto-generated method stub
		Image Imagein = new Image(bitmap);
		FilmFilter filmfilter = new FilmFilter(80f);
		Imagein  = filmfilter.process(Imagein);
		Imagein.copyPixelsFromBuffer();
		return Imagein.getImage();
	}

	/* (non-Javadoc)
	 * @see com.butterfly.vv.graphics.commands.ImageProcessingCommand#getId()
	 */
	@Override
	public String getId() {
		// TODO Auto-generated method stub
		return ID;
	}


}
